package cn.edu.scau.cmi.zhangmingxing.client;

import java.util.Set;

import cn.edu.scau.cmi.zhangmingxing.composite.safe.SafeComponent;
import cn.edu.scau.cmi.zhangmingxing.composite.safe.SafeComponentController;
import cn.edu.scau.cmi.zhangmingxing.composite.safe.SafeComposite;
import cn.edu.scau.cmi.zhangmingxing.composite.safe.SafeLeaf;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;


public class SafeCompositeClient extends Application{

	public void start(Stage primaryStage) {
		try {
			FXMLLoader fxmlLoader=new FXMLLoader(getClass().getResource("./fxml/SafeCompositeFxml.fxml"));
			Parent root=fxmlLoader.load();
			SafeComponentController safe=fxmlLoader.getController();
			safe.begin(primaryStage,root);
			
			
		} catch(Exception e) {
			e.printStackTrace();
		}
	}
	public static void main(String[] args) {
		
		launch(args);	
	//	组合件要么指定为组合件类型，要么仔细组合件的操作时，执行类型转换，否则将发生语法错误
		
	}
}
